3.56 \(\int \frac {1-2 x^2}{1+5 x^2+4 x^4} \, dx\)

Optimal. Leaf size=9 \[ \tan ^{-1}(2 x)-\tan ^{-1}(x) \]

[Out]

-arctan(x)+arctan(2*x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1163, 203} \[ \tan ^{-1}(2 x)-\tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

Int[(1 - 2*x^2)/(1 + 5*x^2 + 4*x^4),x]

[Out]

-ArcTan[x] + ArcTan[2*x]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 1163

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - a*e^2, 0] && GtQ[b^2
 - 4*a*c, 0]

Rubi steps

\begin {align*} \int \frac {1-2 x^2}{1+5 x^2+4 x^4} \, dx &=2 \int \frac {1}{1+4 x^2} \, dx-4 \int \frac {1}{4+4 x^2} \, dx\\ &=-\tan ^{-1}(x)+\tan ^{-1}(2 x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 12, normalized size = 1.33 \[ \tan ^{-1}\left (\frac {x}{2 x^2+1}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(1 - 2*x^2)/(1 + 5*x^2 + 4*x^4),x]

[Out]

ArcTan[x/(1 + 2*x^2)]

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 17, normalized size = 1.89 \[ \arctan \left (4 \, x^{3} + 3 \, x\right ) - \arctan \left (2 \, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^2+1)/(4*x^4+5*x^2+1),x, algorithm="fricas")

[Out]

arctan(4*x^3 + 3*x) - arctan(2*x)

________________________________________________________________________________________

giac [A]  time = 0.17, size = 9, normalized size = 1.00 \[ \arctan \left (2 \, x\right ) - \arctan \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^2+1)/(4*x^4+5*x^2+1),x, algorithm="giac")

[Out]

arctan(2*x) - arctan(x)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 10, normalized size = 1.11 \[ -\arctan \relax (x )+\arctan \left (2 x \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-2*x^2+1)/(4*x^4+5*x^2+1),x)

[Out]

-arctan(x)+arctan(2*x)

________________________________________________________________________________________

maxima [A]  time = 2.36, size = 9, normalized size = 1.00 \[ \arctan \left (2 \, x\right ) - \arctan \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x^2+1)/(4*x^4+5*x^2+1),x, algorithm="maxima")

[Out]

arctan(2*x) - arctan(x)

________________________________________________________________________________________

mupad [B]  time = 4.36, size = 17, normalized size = 1.89 \[ \mathrm {atan}\left (4\,x^3+3\,x\right )-\mathrm {atan}\left (2\,x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(2*x^2 - 1)/(5*x^2 + 4*x^4 + 1),x)

[Out]

atan(3*x + 4*x^3) - atan(2*x)

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 14, normalized size = 1.56 \[ - \operatorname {atan}{\left (2 x \right )} + \operatorname {atan}{\left (4 x^{3} + 3 x \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-2*x**2+1)/(4*x**4+5*x**2+1),x)

[Out]

-atan(2*x) + atan(4*x**3 + 3*x)

________________________________________________________________________________________